package com.shen.module_room.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * author:  shen
 * date:    2021/7/5
 *
 * 用户信息
 */
@Entity(tableName = "chat_record")
class ChatRecordBean{
    @PrimaryKey
    @ColumnInfo(name = "id")
    var id : Long = 0

    @ColumnInfo(name = "content")
    var content : String = ""

    @ColumnInfo(name = "is_send")
    var isSend : Boolean = false

    constructor() {
        id = 0
        content = ""
        isSend = false
    }

    constructor(id: Long, content: String, isSend: Boolean) {
        this.id = id
        this.content = content
        this.isSend = isSend
    }

    override fun toString(): String {
        return "ChatRecordBean(id=$id, content=$content, isSend=$isSend)"
    }
}
